Skip to content

Conversation

@Scotchester
Copy link
Member

ℹ️ PR is to base branch feature/dsdl ℹ️


Closes #530

There's a lot here, but it's largely search and replace work.

There are some subtle differences that can be observed, mainly in the background colors (main nav hover BG and homepage Initiatives tabs, for example). I followed the mapping provided in the DSDL Figma file to convert those.

This also starts to transition some responsibility for site-wide styles from Bootstrap to the DSDL, as discussed a bit during our workshop today. As a result, many of the existing Bootstrap variable overrides were able to be discarded. (And specifically, I didn't uncover any need – at least on this site – to generate r, g, b strings to maintain those -rgb variables.)

Minor additions to the DSDL itself that I found helpful to add here:

  • A --dsdl-body-color variable, to replace the use of --bs-body-color and so that other potential DSDL consuming sites could set their own default body color.
  • A .text-brand-blue utility class for the couple of occasions where we are setting regular text to that color.

Note: Due to importing the whole DSDL now at the top of main.css, some typography changes are now visible, but the work to finish those will come in a separate PR.

@Scotchester Scotchester requested review from a team as code owners December 3, 2025 22:37
@netlify
Copy link

netlify bot commented Dec 3, 2025

Deploy Preview for cal-itp-website ready!

Name Link
🔨 Latest commit 3025d1e
🔍 Latest deploy log https://app.netlify.com/projects/cal-itp-website/deploys/6930bbbdb84af90008c18f47
😎 Deploy Preview https://deploy-preview-539--cal-itp-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@jgravois jgravois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally i think the color discrepancies you called out are improvements.

beyond the fact that this PR deletes more code than it adds, i'd say the styles that remain are more legible/maintainable. kudos!


.black-on-white .nav-pills .nav-link:hover {
border-color: rgba(33, 33, 33, 0.8);
border-color: rgba(38, 38, 38, 0.8); /* gray 80 at 80% opacity */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be a little too clever, but TIL it's possible derive RGB on the fly.

Suggested change
border-color: rgba(38, 38, 38, 0.8); /* gray 80 at 80% opacity */
border-color: rgb(from var(--dsdl-gray-80) r g b / 0.8);

browser support is currently slightly > the opacity (~85%) :trollface:
https://caniuse.com/mdn-css_types_color_rgb_relative_syntax

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, that is cool! It does feel maybe slightly too bleeding-edge right now (just landed in Safari in fall 2024), but this could provide a nice path forward in the near future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could provide a nice path forward in the near future.

given our target audience, i agree.

--calitp-red-4: rgb(192, 63, 77); /* #c03f4d */
--calitp-red-5: rgb(160, 46, 59); /* #a02e3b */
--calitp-yellow-4: rgb(253, 183, 20); /* #FDB714 */
--calitp-font-weight-bold: 700;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔪 very nice. 🔪

@Scotchester Scotchester merged commit 6c8b576 into feature/dsdl Dec 4, 2025
6 checks passed
@Scotchester Scotchester deleted the feature/dsdl-colors branch December 4, 2025 15:49
@Scotchester Scotchester linked an issue Dec 9, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DSDL: Update all existing colors to use new design tokens

3 participants